package com.mine.mybatis.session;

import com.mine.mybatis.dao.UserDao;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {


    <T> T selectOne(String statement, Object parameter) throws Exception;

    <E> List<E>  selectList(String statement, Object parameter) throws SQLException, Exception;

    int insert(String statementId, Object parameter) throws Exception;

    int update(String statementId, Object parameter) throws Exception;

    int delete(String statementId, Object parameter) throws Exception;

    <T> T getMapper(Class<T> mapperClass);
}
